package demo01;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ListStore {
    public static void main(String[] args) {
        List<Map<String, String>> list = new ArrayList<>();
        Map<String, String> M = new HashMap<>();
        M.put("name", "张三");
        M.put("id","1");
        M.put("age", "18");
        list.add(M);

        Map<String, String> M1 = new HashMap<>();
        M1.put("name", "李四");
        M1.put("id", "2");
        M1.put("age", "20");
        list.add(M1);


        for (Map<String, String> map : list){
            System.out.println(map);
        }

    }
}
